package team.se.tms.enums;

import lombok.Getter;

@Getter
public enum DateEnum {
    /**
     * 精确到年
     * @create on 2018/12/12 by johnny
     */
    ACCURATE_TO_YEAR("yyyy"),
    /**
     * 精确到日
     * @create on 2018/12/12 by johnny
     */
    ACCURATE_TO_DAY("yyyy-MM-dd"),
    /**
     * 精确到秒
     * @create on 2018/12/12 by johnny
     */
    ACCURATE_TO_SECOND("yyyy-MM-dd HH:mm:ss");
    private String format;
    DateEnum(String format){
        this.format = format;
    }
}
